package com.pubinfo.passbook.data.service;

import com.pubinfo.passbook.common.entity.*;

import java.io.IOException;
import java.util.List;

public interface FtpService {

  /**
   * 上传附件至ftp
   * @param fileInfo
   * @return
   * @throws IOException
   */
  TFileOpenEnclosureFtp uploadOpenEnclosureFile(TFileInfo fileInfo);

  /**
   * 上传电子票据至影像ftp
   * @param fileInfo
   * @return
   * @throws IOException
   */
  TFileOpenElectronicFtp uploadOpenElectronicFile(TFileInfo fileInfo);


  /**
   * 上传附件至ftp
   * @param fileInfo
   * @return
   * @throws IOException
   */
  List<TFileOpenEnclosureFtp> uploadOpenEnclosureFile(List<TFileInfo> fileInfo);

  /**
   * 上传电子票据至影像ftp
   * @param fileInfo
   * @return
   * @throws IOException
   */
  List<TFileOpenElectronicFtp> uploadOpenElectronicFile(List<TFileInfo> fileInfo);


  //上传附件至ftp
  Boolean uploadEnclosure(String id) throws IOException;

  //上传电子发票/票据
  Boolean uploadElectronic(String id) throws IOException;
  
  //根据file的id上传文件到ftp并返回TFilFtp内容
  TFileEnclosureFtp uploadEnclosureFile(String id) throws IOException;
  
}
